#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "fftw3.h"
#include <unistd.h>
#include "mpi.h"
#include <sys/types.h>
#include <time.h>


#define PI 3.14159265358979323846
#define E 2.718281828459
#define index (j*NUM+i)
